import request from '@/utils/request'

// 修改用户评论
export const editComment = (data) => {
  return request({
    method: 'POST',
    url: '/editComment',
    data
  })
}

// 删除用户评论
export const deleteComment = (data) => {
  return request({
    method: 'POST',
    url: '/deleteComment',
    data
  })
}

// 修改书籍上的评论
export const editBookComment = (data) => {
  return request({
    method: 'POST',
    url: '/editBookComment',
    data
  })
}

// 删除书籍上的评论
export const deleteBookComment = (data) => {
  return request({
    method: 'POST',
    url: '/deleteBookComment',
    data
  })
}
